import java.util.Locale;

class Student{
    String name;
    int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
public class Test {
    public static void main(String[] args) {
        String str = "name=zhangsan&age=18" ;
        String[] result = str.split("&");
        for (String s :result){
            String[] ss = s.split("=");
            for (String sss: ss){
                System.out.println(sss);
            }
        }

    }
    public static void main6(String[] args) {
        String str = "ababacdef";
        String ret = str.replace('a','k');
        System.out.println(ret);
        String ret2 = str.replace("ab","QQ");
        System.out.println(ret2);
    }
    public static void main5(String[] args) {
        String str = "hello";
        String ret = str.toUpperCase();

    }
    public static void main4(String[] args) {
        int a = 123;
        String str = String.valueOf(a);
        System.out.println(str);
        char ch = 'c';
        String str2 = String.valueOf(ch);
        System.out.println(str2);
        String str3 = String.valueOf(new Student("whw",20));
        System.out.println(str3);

    }
    public static void main3(String[] args) {
        byte[] bytes = {97,98,99,100};
        String str = new String(bytes);
        System.out.println(str);
    }
    public static void main2(String[] args) {
        String str1 = new String("abc");
        String str2 = new String("abc");
        System.out.println(str1 == str2);
    }
    public static void main1(String[] args) {
//        String str = new String("Hello bit");
//        System.out.println(str);

    }
}
